import Layout from "@/layout/index.vue";

export const docMyRoutes = [
    {
        path: '/document',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['doc:my:page'],
                path: 'my/view/:docId(\\d+)',
                component: () => import('@/views/document/my/documentMain.vue'),
                name: 'DocMyView',
                meta: { title: '我的公文详情', activeMenu: '/document/my' }
            },
        ]
    },
    {
        path: '/document',
        hidden: true,
        children: [
            //通用呈批表文件路由
            {
                path: 'my/common/openApprovalFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/common/approvalFile.vue'),
                name: 'DocMyCommonApprovalFile',
                meta: { title: '公文呈批表' }
            },
            //通用正文文件路由
            {
                path: 'my/common/openMainFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/common/mainFile.vue'),
                name: 'DocMyCommonMainFile',
                meta: { title: '公文正文' }
            },
            //通用最终文件路由
            {
                path: 'my/common/openFinalFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/common/finalFile.vue'),
                name: 'DocMyDistributeFinalFile',
                meta: { title: '公文正文' }
            },
            //其他自定义路由
            {
                path: 'my/redSheet/openMainFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/redSheet/mainFile.vue'),
                name: 'DocMyRedSheetMainFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'my/redSheet/openMainFileRed/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/redSheet/mainFileRed.vue'),
                name: 'DocMyRedSheetMainFileRed',
                meta: { title: '公文正文套红' }
            },
            {
                path: 'my/sign/openFinalFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/sign/finalFile.vue'),
                name: 'DocMySignFinalFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'my/cancel/openMainFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/cancel/mainFile.vue'),
                name: 'DocMyCancelMainFile',
                meta: { title: '公文正文' }
            },
            {
                path: 'my/cancel/openFinalFile/:docId(\\d+)',
                component: () => import('@/views/document/my/flowInfo/cancel/finalFile.vue'),
                name: 'DocMyCancelFinalFile',
                meta: { title: '公文正文' }
            }
        ]
    }
]